﻿<!DOCTYPE html>
<html>
<head>
    <title>锐浪HTML5报表演示 - 条形码与二维码</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <script src="../grhtml5-6.6-min.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function window_onload() {
            //条形码与二维码的图形生成必须由报表服务器完成，通过 barcodeURL 属性指定生成的服务器程序URL
            //rubylong.grhtml5.barcodeURL = "/data/Barcode.jsp";
            rubylong.grhtml5.barcodeURL = "/html5/General/Barcode.jsp";

            //创建报表显示器，参数指定其在网页中的占位标签的ID，关联的报表模板URL，关联的报表数据URL
            //var reportViewer = rubylong.grhtml5.insertReportViewer("report_holder", "../../grf/1g.grf", "/data/DataCenter.jsp?data=Customer");
            var reportViewer = rubylong.grhtml5.insertReportViewer("report_holder", "barcode.grf", "");

            reportViewer.start(); //启动报表运行，生成报表
        }
    </script>
</head>
<body onload="window_onload()">
    <div id="report_holder">
        <!--要在HTML5报表中显示条形码，必须在WEB服务器上运行Grid++Report WEB报表服务器-->
    </div>
</body>
</html>